HaloPesa Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/3d'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
{
"analysis_period": {
"start_date": "December_2023",
"end_date": "March_2024"
},
"cash_flow_analysis": {
"cash_inflow": [
{
"month": "December_2023",
"amount": 20000.0,
"percentage": 0.63
},
{
"month": "January_2024",
"amount": 2593095.0,
"percentage": 81.45
},
{
"month": "February_2024",
"amount": 40661.0,
"percentage": 1.28
},
{
"month": "March_2024",
"amount": 530000.0,
"percentage": 16.65
}
],
"cash_outflow": [
{
"month": "December_2023",
"amount": 23500.0,
"percentage": 0.77
},
{
"month": "January_2024",
"amount": 2476746.0,
"percentage": 80.75
},
{
"month": "February_2024",
"amount": 40000.0,
"percentage": 1.3
},
{
"month": "March_2024",
"amount": 527090.0,
"percentage": 17.18
}
]
},
"agent_activity_analysis": {
"agent_withdrawal": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 635918.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"agent_deposit": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 110000.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"peer_to_peer_activity_analysis": {
"p2p_sent": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 916328.0,
"percentage": 89.01
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 113090.0,
"percentage": 10.99
}
],
"p2p_received": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 1990345.0,
"percentage": 77.72
},
{
"month": "February_2024",
"amount": 40661.0,
"percentage": 1.59
},
{
"month": "March_2024",
"amount": 530000.0,
"percentage": 20.69
}
]
},
"bank_activity_analysis": {
"wallet_to_bank": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 598000.0,
"percentage": 60.9
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 384000.0,
"percentage": 39.1
}
],
"bank_to_wallet": [
{
"month": "December_2023",
"amount": 20000.0,
"percentage": 3.97
},
{
"month": "January_2024",
"amount": 484000.0,
"percentage": 96.03
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"loan_activity_analysis": {},
"bills_activity_analysis": {
"bill_payment": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"luku": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 34500.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"gepg": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
],
"merchant_payment": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 246000.0,
"percentage": 100.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
},
"other_analysis": {
"other": [
{
"month": "December_2023",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "January_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "February_2024",
"amount": 0.0,
"percentage": 0.0
},
{
"month": "March_2024",
"amount": 0.0,
"percentage": 0.0
}
]
}
}